interface car{ name: string; details(); } class audi{ name: string; constructor(name: string) { this.name = name; } details() { console.log(this.name+" "+"India was established in March 2007 as a division of Volkswagen Group Sales India."+this.name+" "+" is represented in 110 countries worldwide and since 2004,"+this.name+" "+"has been selling its products on the Indian market."); } } class BMW { name: string; constructor(name: string) { this.name = name; } details() { console.log(this.name+" "+"India is a 100% subsidiary of the BMW Group and is headquartered in Gurgaon (National Capital Region). The wide range of"+" "+this.name+" "+"activities in India include a manufacturing plant in Chennai, a parts warehouse in Mumbai, a training centre in Gurgaon NCR and development of a dealer organisation across major metropolitan centres of the country"); } } class Chevrolet { name: string; a: number; constructor(name: string) { this.name = name; } details() { console.log(this.name+" "+"Sales India Pvt Ltd was a division of General Motors India Private Limited which in turn was a joint venture of General Motors of the United States. It was the 5th largest car maker in India after Maruti Suzuki, Hyundai, Tata and Mahindra. General Motors will stop selling cars in India by the end of 2017. However, it will continue to provide support for existing customers and continue operating its plant in Talegaon as an export-only facility. It will sell its Halol plant to a Chinese company during the process of its exit from the domestic Indian market."); } } var a = new audi("Audi"); var b = new BMW("BMW"); var c = new Chevrolet("Chevrolet"); a.details(); b.details(); c.details();